package com.sinoglobal.ningxia.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * 
 * @author wxy
 * @createdate 2014-6-17 上午9:31:06
 * @Description: 我的收藏界面的adapter
 */
public class MyCollectionFragmentAdapter extends FragmentPagerAdapter {

	public final static int TAB_COUNT = 2;
	private List<Fragment> lists;

	public void setLists(List<Fragment> lists) {
		this.lists = lists;
	}

	public MyCollectionFragmentAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int id) {

		return lists.get(id);
	}

	@Override
	public int getCount() {
		//Auto-generated method stub
		return TAB_COUNT;
	}

}
